﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 存放一些常亮
/// </summary>
public class Const : MonoBehaviour
{
    /// <summary>
    ///  数据存储路径
    /// </summary>
    public static string DataPath = Application.dataPath + @"\score.xml";

    public static string bg_music = "normal";
    public static string DealCard = "givecard";
    public static string Grab = "qiangdizhu1";
    public static string DisGrab = "buqiang";
    public static string Select = "select";
    public static List<string> Pass = new List<string> { "buyao1", "buyao2", "buyao3" };
    public static List<string> PlayHand = new List<string> { "dani1", "dani2", "dani3" };
    /// <summary>
    /// 单牌声音
    /// </summary>
    public static List<string> Single = new List<string> { "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "1", "2", "14", "15" };
    /// <summary>
    ///  对儿声音
    /// </summary>
    public static List<string> Double = new List<string> { "dui3", "dui4", "dui5", "dui6", "dui7", "dui8", "dui9", "dui10", "dui11", "dui12", "dui13", "dui1", "dui2" };

    public static string Straight = "shunzi";
    public static string DoubleStraight = "liandui";
    public static string TripleStraight = "feiji";
    public static string Three = "sange";
    public static string ThreeAndOne = "sandaiyi";
    public static string ThreeAndTwo = "sandaiyidui";
    public static string Boom = "zhadan";
    public static string JokerBoom = "wangzha";

}


/// <summary>
///  出牌的类型
/// </summary>
public enum CardType
{
    None,
    Single,   //单牌
    Double,  //对儿  55， 66
    Straight,  //顺子  34567
    DoubleStraight,  //双对顺   5566  334455....
    TripleStraight,   //飞机      333444  / 33354448
    TripleStraightTwo, //飞机1    33344478 / 55566613
    TripleStraightFour, // 飞机2   3334447788 / 5556663344
    Three,   //三不带     555  / 666 ...
    ThreeAndOne,  //三带一  7776/ 9993...
    ThreeAndTwo,  //三带二  55522/44411
    FourAndTwo,   //四带二  555522，333376
    Boom,    //炸弹  2222 / 5555         
    JokerBoom  //王炸  
}


public enum PanelType
{
    StartPanel,
    CharacterPanel,
    InteractionPanel,
    GameOverPanel
}

public enum CommandEvent
{
    ChangeMultiple,   //加不加倍
    RequestPlayGame, //请求发牌
    GrabLandlord,    //抢地主
    PlayCard,     //出牌
    PassCard, //不出牌
    GameOver,  //游戏结束
    RequestUpdate, //数据更新
    UpdateGameOver  // 更新结算界面
}

public enum ViewEvent
{
    DealCard, // 给每个人发牌 CharacterView
    CompleteDeal,      //发牌结束
    DealThreeCards,   // 发三张地主牌
    RequestPlay,      //玩家请求出牌
    SuccessPlayCard,    //成功出牌
    UpdateIntegration,  // 更新积分
    UpdateGameOver,   // 更新结算界面
    RestartGame  //重新开始
}

/// <summary>
/// 持有牌的角色
/// </summary>
public enum CharacterType
{
    Library,
    Player,
    ComputerRight,
    ComputerLeft,
    Desk
}

/// <summary>
///  牌的花色
/// </summary>
public enum ColorsCard
{
    None, //大王，小王， 其他
    Club, //梅花
    Heart, //红桃 
    Spade, //黑桃
    Square // 方片 

}

/// <summary>
/// 牌的大小
/// </summary>
public enum WeightCard
{
    Three,
    Four,
    Five,
    Six,
    Seven,
    Eight,
    Nine,
    Ten,
    Jack,
    Queen,
    King,
    One,
    Two,
    SJoker,
    LJoker
}


/// <summary>
///  玩家的省份
/// </summary>
public enum IdentityCard
{
    Farmar,  //农民
    Landlord   //地主
}

/// <summary>
///  desk生成手牌的位置
/// </summary>
public enum ShowCreatePoint
{
    Desk,
    Player,
    ComputerRight,
    ComputerLeft
}











